import styled from 'styled-components'

const arr = require('../../assets/img_arr.png')

export const Learn = styled.div`
.xxjd{
  background: #f2f2f2;
  line-height: .66rem;
  font-size: .28rem;
  color: #808080;
  padding: 0 .30rem;
  img{
    float: right;
    width: .15rem;
    margin-top: .20rem;
  }
}
.title{
  font-weight: bold;
  line-height: .78rem;
  font-size: .28rem;
  span{
    float: right;
    color: #c29c5d;
    font-weight: normal;
  }
}
.prev{
  background: #fff;
  padding: 0 .30rem .30rem;
  margin-bottom: .2rem;
  img, video{
    width: 100%;
    border-radius: .10rem;
    max-height: 3rem;
  }
  h2{
    font-weight: normal;
    font-size: .32rem;
    color: #333;
    margin: .2rem 0 .15rem;
  }
  p{
    font-size: .28rem;
    color: #808080;
    line-heigth: .40rem;
  }
  .time{
    font-size: .24rem;
    color: #808080;
    text-align: right;
    margin: .15rem 0;
    background: transparent url(${arr}) no-repeat right center;
    background-size: .15rem .30rem;
    padding-right: .2rem;
  }
}

.kc{
  // margin-top: .20rem;
  background: #fff;
  padding: 0 .30rem;
  li{
    overflow: hidden;
    padding-bottom: .3rem;
    img{
      float: left;
      width: 2.1rem;
      height: 1.3rem;
      border-radius: .05rem;
      margin-right: .30rem;
    }
    .hidden{
      overflow: hidden;
      h2{
        font-size: .32rem;
        line-height: .32rem;
        font-weight: normal;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        margin-bottom: .15rem;
      }
      p{
        font-size: .28rem;
        line-height: .40rem;
        font-weight: normal;
        text-overflow: ellipsis;
        display:-webkit-box; 
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2; 
        overflow: hidden;
        color: #808080;
      }
    }
  }
}
.no{
  text-align: center;
  padding: .3rem;
  color: #999;
  font-size: .24rem;
}
`

